package xyz.fuqufyb.aec.feign.meals;

import com.spingcloud.travel.common.TableResult;

import com.springcloud.travel.entity.Meals;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;



@FeignClient(value = "travel-meals",path ="/sys/meals")
public interface MealsFeign {
    @PostMapping("/add")
    boolean addMeals(@RequestBody Meals meals);

    @PostMapping("/update")
    boolean updateMeals(@RequestBody Meals meals);

    @PostMapping("/del")
    boolean delMeals(@RequestParam("ids") String[] ids);

    @GetMapping("/table")
    TableResult getTable(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit);
}
